navigationGo.pngQuick Navigation
allprojects32.pngAll projects
hardware32.pngHardware
links32.pngLinks

favoriteStar32.pngTop projects
Alan numitron clock
Clapclap 2313/1386
SNES Pi Webserver
USB Volume/USB toys
Smokey amp
Laser cutter
WordClock
ardReveil v3
SNES Arcade cabinet
Game boy projects
cameleon
Home Presence Detector

github32.pngGitHub
AlanFromJapan

navigationMail.pngContact me

alanfjmail.png
3flags.pngWho's Alan?


Akizukidenshi
Elec-lab
Rand Nerd Tut
EEVblog
SpritesMods
AvrFreaks
Gameboy Dev
FLOZz' blog
Switch-science
Sparkfun
Suzusho
Datasheet Lib
Reddit Elec
Ermicro
Carnet du maker (fr)

bedside mood companion

Last update: Thu Jun 5 22:25:40 2025
This is a new Template for bedside mood companion!

Presentation

Principle

Points of interrest

Implementation

Bill of materials

Schematics


High level design

Source code

Get pygame running: not easy, lots of libs missing. Do the below at minimum and cross fingers↓
#to feel at home
sudo apt-get install git emacs-nox htop
#pygame install (last step takes time to build, it's normal)
sudo apt-get install libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev 
sudo apt-get install libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev
sudo apt-get install python3-dev python3-numpy
sudo pip install pygame
Get the scren going on (in my case a KeDei 3.5" HDMI):
git clone https://github.com/goodtft/LCD-show.git
cd LCD-show/

#In case of 3.5" High Speed display(MHS35)
chmod a+x MHS35-show
sudo ./MHS35-show

#let it reboot 
#then edit /boot/config.txt to force a higher resolution than 480x320

#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#

#another option (no need to do both) is to use the KeDei drivers ... seem to work similarily and I ended up using this one (though the zip file is 116MB)
# get the file from their site http://kedei.net/raspberry/raspberry.html and follow what's here http://osoyoo.com/2017/01/install-3-5-hdmi-touch-screen-linux-driver-on-raspberry-pi/
Test it works with Framebuffer (link at Adafruit) : check!

Pictures

Links

Helpful sources

Screen:
  • https://www.raspberrypi.org/forums/viewtopic.php?t=175616
  • Configure my HDMI LCD screen link
  • Radio/playback on Raspi:
  • Listen to webradio with VLC headless sample script
  • Inspiration

    With a Raspberry Pi:
  • A great one in an antique radio
  • Use Music Player Daemon (MPD) or MPC (client)
  • https://www.lesbonscomptes.com/pages/raspmpd.html
  • https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen/installing-the-music-player-daemon
  • http://raspberry-at-home.com/mpd-music-player-daemon/
  • Not directly related but he uses the same screen https://circuitbeard.co.uk/2017/08/28/tomy-turnin-turbo-dashboard-outrun-arcade/
  • Raspi play youtube from cmd line:
  • https://www.reddit.com/r/raspberry_pi/comments/3o03f1/a_quick_and_dirty_script_to_play_any_youtube/
  • With an ESP8266:
  • The famous Ka-radio
  • https://hackaday.io/project/11570-wifi-webradio-with-esp8266-and-vs1053
  • All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
    electrogeek.tokyo ~ Formerly known as Kalshagar.wikispaces.com and electrogeek.cc (AlanFromJapan [2009 - 2025])